/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jogo.sprite;

/**
 *
 * @author IVAN
 */
public class SpritesJogo {

    private SpriteStore sp;

    public SpritesJogo() {
        sp = SpriteStore.getInstance();
        sp.getSprite("GradiusSheet1.png");
    }

    public Sprite SpriteNaveEstatica(int frame) {

        Sprite stmp = sp.getSprite("GradiusSheet1.png");
        stmp.setAltura(20);
        stmp.setLargura(33);
        stmp.setFrameAtual(0);
        stmp.setFrames(1);
        stmp.setSpeed(500);

        stmp.setPosInix(258);
        stmp.setPosIniy(2);

        stmp.setPosFimx(225);
        stmp.setPosFimy(2);

        return stmp;
    }

    public Sprite SpriteTiro(int frame) {

        Sprite stmp = sp.getSprite("gradius_nes_assembled.png");
        stmp.setPreviewTime( System.currentTimeMillis());

        stmp.setAltura(8);

        stmp.setLargura(10);
        //Adicionando o incremento em X
        stmp.setIncreMentox(6);

        stmp.setFrameAtual(0);
        stmp.setFrames(4);

        stmp.setSpeed(20);

        stmp.setPosInix(71);
        stmp.setPosIniy(248);

        stmp.setPosFimx(120);
        stmp.setPosFimy(249);        

        return stmp;
    }

    public Sprite SpriteAsteroideEstatico(int i) {
        
        Sprite stmp = sp.getSprite("rockPlanet256.png");
        stmp.setAltura(256);
        stmp.setLargura(256);
        stmp.setFrameAtual(0);
        stmp.setFrames(1);
        stmp.setSpeed(500);

        stmp.setPosInix(0);
        stmp.setPosIniy(0);

        stmp.setPosFimx(256);
        stmp.setPosFimy(0);

        return stmp;
    }
}
